/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: 焦质晔
 * @Last Modified time: 2019-11-30 15:49:43
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 盘点礼品库存查询
export const searchByPage = params => axios.get(`${SERVER.MEMBERS_CLUB}/giftInventory/searchGiftStorageLists`, {
  params
});

// 开始盘点
export const startGiftInventorys = params => axios.post(`${SERVER.MEMBERS_CLUB}/giftInventory/saveGiftInventorys`, params);

// 盘点礼品库存查询
export const searchGiftInventorys = params => axios.get(`${SERVER.MEMBERS_CLUB}/giftInventory/searchGiftInventorys`, {
  params
});

// 取消盘点
export const cancelGiftInventorys = params => axios.post(`${SERVER.MEMBERS_CLUB}/giftInventory/cancelGiftInventorys`, params);

// 预览动态盘点,通过仓库code查找当前礼品列表
export const queryLPListByStroageId = params => axios.get(`${SERVER.MEMBERS_CLUB}/giftInventory/queryLPListByStroageId`, {
  params
});

// 参数查询
export const doSearch = params => axios.post(`${SERVER.SYSMANAGE}/params/doSearch`, params);
